-- GENERATED SPELL FOR [Bladespire Ravager] --


function spell0_20729(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20729', 2303, 1)
end

function spell1_20729(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(16128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20729', 0, 1)
end

function Sorts_20729(pUnit, Event)
local choix_sorts_20729 = math.random(0, 1)
if choix_sorts_20729 == 0 then
pUnit:RegisterEvent('spell0_20729', 1, 1)
end
if choix_sorts_20729 == 1 then
pUnit:RegisterEvent('spell1_20729', 1, 1)
end
end

function mob20729_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20729', math.random(1500, 3000), 1)
end

function mob20729_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20729_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20729_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20729, 1, 'mob20729_Action')
RegisterUnitEvent(20729, 2, 'mob20729_Leave')
RegisterUnitEvent(20729, 3, 'mob20729_Kill')
RegisterUnitEvent(20729, 4, 'mob20729_Die')
